package ink.yuanchu.picachoframework.service.bo;

import com.baomidou.mybatisplus.extension.service.IService;
import ink.yuanchu.picachoframework.entity.RoleAssociatedPermissions;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @author ziyuan
 * @Date: 2021/03/20/13:09
 * @Description:
 */
public interface RoleAssociatedPermissionsBO extends IService<RoleAssociatedPermissions> {

    /**
     * 根据角色id和权限id  删除  这个角色的某个权限
     * @param roleId
     * @param permissionsId
     * @return
     */
    int deleteByRoleIdAndPermissionsId(String roleId,String permissionsId);

    /**
     * 给角色添加权限
     * @param roleId
     * @param permissionId
     * @return
     */
    int addRoleAssociatedPermissions(String roleId,String permissionId);
}
